package org.example.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.order.entity.Admin;

import java.time.LocalDateTime;
import java.util.List;

@Mapper
public interface AdminMapper extends BaseMapper<Admin> {
    void updateLoginInfo(@Param("AdminId")Long id, @Param("loginTime") LocalDateTime now, @Param("loginIp") String ip);

    int restoreAdmin(Long adminId);

    int restoreUserBatch(List<Long> adminIds);
}
